﻿// Temp.cpp: CTemp 的实现

#include "pch.h"
#include "Temp.h"


// CTemp

STDMETHODIMP CTemp::Add(DOUBLE a, DOUBLE b, DOUBLE* result)
{
    if (result == nullptr)
        return E_POINTER;

    *result = a + b;
    return S_OK;
}

STDMETHODIMP CTemp::Multiply(DOUBLE a, DOUBLE b, DOUBLE* result)
{
    if (result == nullptr)
        return E_POINTER;

    *result = a * b;
    return S_OK;
}

// 定义 CLSID_Temp
extern "C" const CLSID CLSID_Temp = { /* GUID 值 */ };